home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 501-525 / disk_524 / tapdemo / tap.doc < prev    next >
Text File  |  1992-05-06  |  13KB  |  250 lines

  1. TAP - Tumble Axis Processor
  2. Another Sculpt utility by Martin Koistinen - July 1991
  3.  
  4. ***************************************************************************
  5. DEMO USERS:
  6.      The DEMO version of TAP has been crippled in that it will not function
  7. on paths with more than 15 nodes.  Other than that it should be fully
  8. functional.
  9. ***************************************************************************
  10.  
  11.      This program has several functions.  One of them is to automatically
  12. align a path's tumble axes so that an object following that path will
  13. always face the direction of travel.  On paths that are not confined to a
  14. plane, the object will bank accordingly; if your path does a loop, so will
  15. your object.  Spinning objects are incredibly simple to make with TAP.
  16.  
  17.     Another function is to help one create a path for the LOCATION so that
  18. it remains stationary relative to the object following the input path;
  19. TUMBLE AXES considered.  (See example below for a more descriptive
  20. explanation of this function.)
  21.  
  22.     Finally, TAP can also be used to produce an easy to read data list
  23. containing the location of each node and the orientation of each of its
  24. tumble axes.  This is very handy if you must verify an objects path with
  25. "real-world"  data.
  26.  
  27. EXAMPLE:
  28.      Suppose you would like to animate a moving car from its driver's point
  29. of view.  Before TAP your options were to either make the LOCAL ORIGIN of
  30. your vehicle in the place where your driver's eye would normally be, which
  31. is very awkward when trying to navigate around corners and such in a way
  32. that looks natural for a car, or try to construct another path for the
  33. LOCATION that travels along side the car passing through the driver's eye.
  34. If you have ever tried the later, you would have noticed that your
  35. resulting animation looked as though your driver's head were bouncing all
  36. over the cab.  This is because it is very difficult to make sure that each
  37. node on the LOCATION's path is absolutely still relative to the
  38. corresponding node on the car's path especially if your car needs to make
  39. complex maneuvers.  I wrote TAP specifically for this purpose.
  40.  
  41.      TAP does almost everything for you by aligning your car's path's
  42. tumble axes so that your car always faces the direction of travel.  TAP
  43. also creates a mathematically perfect curve that, when made into a path, is
  44. exactly where the camera should be relative to your moving vehicle.  If you
  45. want the camera to always look in a fixed direction relative to the vehicle
  46. (as in straight over the hood) you may create another curve (path) with TAP
  47. for the TARGET by indicating a position a little bit ahead (relative to the
  48. car's orientation) of the LOCATION path's first node.
  49.  
  50.      If you need your car to "spin out" or "fish tail", one can make a
  51. SPLINE PATH that twists and turns about.  After aligning the axes with TAP,
  52. merely straighten your SPLINE PATH out and your TUMBLE AXES will remain as
  53. though they were on the twisted version.  This technique can produce some
  54. very complex but natural looking motion.  If you then run TAP again on the
  55. straightened SPLINE PATH to make the LOCATION curve, make sure you DO NOT
  56. RE-ALIGN THE PATH, and your camera will remain in a perfect position for
  57. each node.
  58.  
  59.      By using the "Free" option (WB usage) or the default alignment (CLI
  60. usage), TAP can do all of the above for any type of vehicle, especially if
  61. your object needs to bank or lean with the path.  The "Flat" option is
  62. useful if you want to animate something that doesn't necessarily "bank" or
  63. "lean" into its turns.  It accomplishes this by making sure that the
  64. vertical tumble axis remains just that, vertical.
  65.  
  66.     The "Tangent"  alignment algorithm seems to make smoother, less jumpy
  67. motion paths.  The default alignment algorithm merely directs the forward
  68. tumble axis toward the next node.
  69.  
  70. STEP BY STEP INSTRUCTIONS:
  71.      1) Create your path Construct your path in Sculpt.  This is generally
  72. done by making a curve out of points and edges and using the "DO MAKE PATH"
  73. menu item while your cursor is indicating the beginning of your path-to-be.
  74. If you construct a circular curve, Sculpt will need to know which direction
  75. you prefer your path to start in, this is done by indicating the beginning
  76. of the path with the cursor and having only the next vertex selected
  77. (highlighted).  It is important to pay attention to your orientation in the
  78. TRI-VIEW when initially building your path.  If you have built your path
  79. and aligned your tumble axes in the wrong TRI-VIEW window, you can rotate
  80. your path to correct its placement but the tumble axes will remain in there
  81. previous orientation.
  82.  
  83.      2) Save Your path Save your path with the "SAVE OBJECT" menu item.  If
  84. you intend for TAP to produce a curve script, you must place the cursor at
  85. the appropriate position for your curve to start (relative to the beginning
  86. of your path), before you save.  It is a good idea to put a vertex here as
  87. a point of reference.  Make sure that you save only your path.  TAP will
  88. not make a curve script if the cursor coincides with the beginning of your
  89. path when it was saved.  Figure 1 shows the cursor offset before saving the
  90. path.
  91.  
  92.      3) Run TAP Go to the Workbench and double-click TAP's icon.  In the
  93. "Input Path" box, put your path's filename.  I like to do all of my work
  94. with RAM:  but you may have a different preference.  If you need your
  95. object to remain vertical throughout your animation, select "Flat" under
  96. "Alignment" otherwise select "Free".  If you do not need alignment at all,
  97. select "None".  Indicate with the center gadget if you desire your forward
  98. tumble axis to be tangential to the path or to point directly to the next
  99. node.
  100.  
  101.      If you desire a file containing your path's information or a curve
  102. script, indicate so with the "Path Data" or "Curve Script" gadgets and make
  103. sure you that you provide a valid path and filename.
  104.  
  105.      Hit "Perform" when you have selected the appropriate gadgets and
  106. provided valid filename(s).  TAP will churn through the math and modify
  107. your path file and/or create the appropriate text file.  When finished,
  108. close TAP in the usual manner to conserve valuable ram for Sculpt.  If
  109. needed later, TAP will pick up where you left off.  (Provided you haven't
  110. deleted your ENV:TAP variable (file)).
  111.  
  112.      4) Re-load your new path Return to Sculpt.  I usually erase the old
  113. path by selecting only its vertices and by selecting "ERASE SELECTED
  114. VERTICES" from Sculpts menus.  With your cursor in the same location as it
  115. was when you saved your path, load the now modified one by using "LOAD
  116. OBJECT".
  117.  
  118.      If you have created a curve script, load it now (with the cursor still
  119. in its original location) using "LOAD SCRIPT".  Sculpt will then take a
  120. moment to construct your new curve.  To make this curve a path, indicate
  121. the beginning and use "DO MAKE PATH".
  122.  
  123.      Figures 3 and 4 show the differences between the "Tangent" and
  124. "Direct" algorithms.  Notice that they affect both the tumble axes and the
  125. curve constructed by TAP's script.
  126.  
  127. WORKBENCH USAGE:
  128.     Simply double click TAP's icon.  Except for the "About", "Perform",
  129. and string gadgets, each gadget, when selected, will give a description of
  130. itself in the "Messages"  box.  When you have selected the desired options
  131. and provided the correct filenames, click on "Perform".  TAP will tell you
  132. when its completed its operation and will await further instruction.  When
  133. finished with TAP merely hit the standard Window Close gadget.  If you
  134. re-invoke TAP before you reboot, TAP will appear in the same place, with
  135. the same settings you had when you closed it.  I implemented this so that
  136. TAP can be closed down to save RAM while remaining as convenient as
  137. possible.  This is done via an ENVIRONMENT variable.  (See your AmigaDOS
  138. 1.3 Manual for more information)
  139.  
  140. CLI USAGE:
  141.      TAP YourPath.scene YourText.file [-a -t -f -d -e]
  142.  
  143.      "YourPath.scene" is the filename of the path saved as an object from
  144. Sculpt.  "YourText.file" is the filename you chose for your path data file
  145. or curve script file.  The items in brackets are optional.
  146.  
  147. -a (Align)
  148.      This is a flag which tells TAP that you need it to align the tumble
  149. axes.  The default algorithm produces paths that make objects always face
  150. the direction of travel.  Paths that curve in all 3 dimensions are handled
  151. pretty well making nice flight paths.
  152.  
  153. -f (Flat)
  154.      This tells TAP to restrict the vertical tumble axis so that your
  155. object is ALWAYS perfectly vertical.  Very useful for animating people and
  156. things that merely turn to face its path but does not bank or lean into
  157. them.
  158.  
  159. -t (Tangential)
  160.      This is a flag which instructs TAP to use the tangent mode algorithm
  161. when aligning your path's tumble axes.  This will point the tumble axes so
  162. that the forward axes point tangentially to the path at each node.
  163.  
  164. -e (Extrude)
  165.      This tells TAP to make a script that makes a curve that when turned
  166. into a path, makes objects following it stationary relative to the path
  167. input to TAP.  It does this by "extruding" a single point along your path
  168. while considering the tumble axes.  When using this, make sure that your
  169. cursor indicates the proper displacement from the first node of your path
  170. that is appropriate for the curve you desire.  It is recommended that you
  171. make a vertex in this location (so you can find it later) but make sure you
  172. save only the actual vertices that make up your path.
  173.  
  174. -d (Display)
  175.      This is a flag which instructs TAP to produce your path's tumble
  176. information.  Beware if both -d and -e are set, your output text file will
  177. contain both an extrude script and this information which will cause an
  178. error (and possibly a system crash) if Sculpt tries to interpret it as a
  179. script.
  180.  
  181. FUTURE PLANS:
  182.      I hope to in the future provide other functions and alignment
  183. algorithms.  You can practically guarantee this by sending in your
  184. shareware fee.  I don't think my wife and child will allow me to spend any
  185. more time on this unless it's bringing in revenue.  Some of the features I
  186. hope to add include; processing of path subsets.  (ie, align only nodes 10
  187. - 20, etc.), automatic linear and accelerated rotations on any axis, and
  188. spline-like alignment algorithms.
  189.  
  190.  
  191.  
  192. REGISTRATION:
  193.      The registered version can be obtained by sending either:  $30.00 or
  194. $25.00, a 3.5" diskette and a SASE (with enough postage for the disk and 3
  195. or 4 pages of printed manual with diagrams) to:
  196.  
  197. Martin Koistinen
  198. 1920 Richmond #3
  199. Houston, TX 77098
  200. (713) 522-5227
  201.  
  202. (Checks and Money Orders must be drawn on a US bank in US monies)
  203.  
  204. I can also be reached for comments, suggestions, or complaints at:
  205.  
  206. GEnie - M.KOISTINEN InfoLine BBS (713) 977-0432
  207.  
  208. OTHER UTILITIES:
  209.      I have a few other Sculpt 4D utilities.  Here's a list of them with a
  210. short description:
  211.  
  212.      Wrap This program takes an existing Sculpt object and wraps it about a
  213. sphere or cylinder.  Has many options including the ability to retain any
  214. relief in the original object on the final one.  Great for making planetary
  215. objects with mountains.  I use it regularly as an additional "tool" (like
  216. the regular Sculpt plethora of tools.) I have used this to make a very
  217. impressive model of Earth from a map.  Version 1.3 Shareware $10.00.
  218.  
  219.      CopyExp This program simply copies the palette and exposure values
  220. from one take to another.  Indispensable if you like to break up larger
  221. animations into smaller more-manageable ones.  Free upon request with any
  222. other Shareware registration fee.
  223.  
  224.      MakeFakes This program creates "fake" Sculpt image files easily for
  225. use in tricking Sculpt into thinking that frame is already rendered.  It
  226. will optionally copy another file to each of the ones it creates.  I have
  227. used it very successfully to save MANY HOURS of rendering an animation that
  228. has many frames that are identical.  Free upon request with any other
  229. Shareware registration fee.
  230.  
  231.  
  232.      RenderFrames This is a program designed to help you split up an
  233. animation among 2 or more Amigas for rendering.  Make the most of your
  234. rendering time!  Free upon request with any other Shareware registration
  235. fee.
  236.  
  237. OTHER STUFF:
  238.      Disclaimer Use of this program is "at your own risk." I cannot be held
  239. liable for any damages, direct or consequential, arising out of the use or
  240. inability to use this product.  User assumes all risk and liability
  241. whatsoever in connection therein.
  242.  
  243.      Acknowledgments I would like to thank Tracy Evans, for help with these
  244. documents and general support, Brian McCullough of Byte by Byte, for
  245. technical support, Legal Media Center and Pennbaker Design for use of their
  246. facilities.
  247.  
  248.      Sculpt Animate 4-D (and any abbreviations I've used) is a registered
  249. trademark of Byte by Byte Corporation.
  250.